]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-icon: Remove some dead code
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Sep 2017 11:47:00 +0000 (13:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 22 Sep 2017 15:43:54 +0000 (17:43 +0200)
src/st/st-icon.c

index 8fd82d51253f3c6bca5654bb187d998410be957a..192df60b41acf5fa1552241437897a2e9db66192 100644 (file)
@@ -275,14 +275,7 @@ st_icon_update_shadow_pipeline (StIcon *icon)
   g_clear_pointer (&priv->shadow_pipeline, cogl_object_unref);
 
   if (priv->shadow_spec)
-   {
-     gint width, height;
-
-     clutter_texture_get_base_size (CLUTTER_TEXTURE (priv->icon_texture),
-                                    &width, &height);
-
-     priv->shadow_pipeline = _st_create_shadow_pipeline_from_actor (priv->shadow_spec, priv->icon_texture);
-   }
+   priv->shadow_pipeline = _st_create_shadow_pipeline_from_actor (priv->shadow_spec, priv->icon_texture);
 }
 
 static void